<template>
  <el-card shadow="never" class="mt15px">
    <el-row>
      <el-col :span="24" class="mt5">
        <el-descriptions :column="3">
          <el-descriptions-item>
            <template #label>
              <descriptions-item-label label="审核人" />
            </template>
            {{ data.auditUser }}
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <descriptions-item-label label="审核时间" />
            </template>
            {{ formatDate(data.auditTime) }}
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <descriptions-item-label label="审核结果" />
            </template>
            <dict-tag
              v-if="data.status != undefined"
              :type="DICT_TYPE.AUDIT_STATUS"
              :value="data.auditStatus"
            />
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <descriptions-item-label label="原因" />
            </template>
            {{ data.rejectReason }}
          </el-descriptions-item>
        </el-descriptions>
      </el-col>
    </el-row>
  </el-card>
</template>
<script setup lang="ts">
import { formatDate } from '@/utils/formatTime'
import { DICT_TYPE } from '@/utils/dict'

const { data } = defineProps<{ data: Object }>()
</script>
<style scoped lang="scss">
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
</style>
